<!DOCTYPE html>

<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8"/>
<title>Metronic | Admin Dashboard Template</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta content="" name="description"/>
<meta content="" name="author"/>

<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css"/>
<link href="<?php echo $this->webroot ?>admin/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo $this->webroot ?>admin/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo $this->webroot ?>admin/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
<!-- END GLOBAL MANDATORY STYLES -->
<!-- BEGIN PAGE LEVEL STYLES -->
<link rel="stylesheet" type="text/css" href="<?php echo $this->webroot ?>admin/plugins/select2/select2.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->webroot ?>admin/plugins/select2/select2-metronic.css"/>
<!-- END PAGE LEVEL SCRIPTS -->
<!-- BEGIN THEME STYLES -->
<link href="<?php echo $this->webroot ?>admin/css/style-metronic.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo $this->webroot ?>admin/css/style.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo $this->webroot ?>admin/css/style-responsive.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo $this->webroot ?>admin/css/plugins.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo $this->webroot ?>admin/css/themes/default.css" rel="stylesheet" type="text/css" id="style_color"/>
<link href="<?php echo $this->webroot ?>admin/css/pages/login.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo $this->webroot ?>admin/css/custom.css" rel="stylesheet" type="text/css"/>
<!-- END THEME STYLES -->
<link rel="shortcut icon" href="favicon.ico"/>
</head>
<!-- BEGIN BODY -->
<body class="login">
<!-- BEGIN LOGO -->
<div class="logo">
	<a href="index.html">
		<img src="<?php echo $this->webroot ?>admin/img/logo-big.png" alt=""/>
	</a>
</div>
<!-- END LOGO -->
<!-- BEGIN LOGIN -->
<div class="content">
	<!-- BEGIN LOGIN FORM -->
    <?php echo $this->Session->flash('auth'); ?>
	<?php echo $this->Form->create('User'); ?>
		<h3 class="form-title">Login to your account</h3>
		<?php echo $this->Session->flash(); ?>
		<div class="form-group">
			<!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
			<label class="control-label visible-ie8 visible-ie9">Username</label>
			<div class="input-icon">
				<i class="fa fa-user"></i>
				<?php 
                    echo $this->Form->input('username',
                                            array(
                                                'label' => false,
                                                'div' => false,
                                                'class' => 'form-control placeholder-no-fix',
                                                'autocomplete' => 'off',
                                                'placeholder' => 'Username'
                                            )
                    );
                ?>
            </div>
		</div>
		<div class="form-group">
			<label class="control-label visible-ie8 visible-ie9">Password</label>
			<div class="input-icon">
				<i class="fa fa-lock"></i>
				<?php
                    echo $this->Form->input('password',
                                            array(
                                                'label' => false,
                                                'div' => false,
                                                'class' => 'form-control placeholder-no-fix',
                                                'autocomplete' => 'off',
                                                'placeholder' => 'Password'
                                            )
                    );
                ?>
            </div>
		</div>
    	<?php 
            $options = array(
                'label' => 'Login',
                'div' => false,
                'class' => 'btn green pull-right',
            );
            echo $this->Form->end($options); 
        ?>
        <div class="clearfix"></div>
	<!-- END LOGIN FORM -->

</div>
<!-- END LOGIN -->
<!-- BEGIN COPYRIGHT -->
<div class="copyright">
	 2014 &copy; <a target="_blank" href="http://taowebsite.net">Taowebsite.net</a>.
</div>
<!-- END COPYRIGHT -->
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
<!--[if lt IE 9]>
	<script src="<?php echo $this->webroot ?>admin/plugins/respond.min.js"></script>
	<script src="<?php echo $this->webroot ?>admin/plugins/excanvas.min.js"></script> 
	<![endif]-->
<script src="<?php echo $this->webroot ?>admin/plugins/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="<?php echo $this->webroot ?>admin/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<script src="<?php echo $this->webroot ?>admin/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="<?php echo $this->webroot ?>admin/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
<script src="<?php echo $this->webroot ?>admin/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="<?php echo $this->webroot ?>admin/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="<?php echo $this->webroot ?>admin/plugins/jquery.cokie.min.js" type="text/javascript"></script>
<script src="<?php echo $this->webroot ?>admin/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<script src="<?php echo $this->webroot ?>admin/plugins/jquery-validation/dist/jquery.validate.min.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo $this->webroot ?>admin/plugins/select2/select2.min.js"></script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="<?php echo $this->webroot ?>admin/scripts/core/app.js" type="text/javascript"></script>
<script src="<?php echo $this->webroot ?>admin/scripts/custom/login.js" type="text/javascript"></script>
<!-- END PAGE LEVEL SCRIPTS -->
<script>
		jQuery(document).ready(function() {     
		  App.init();
		  Login.init();
		});
	</script>
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>